#ifndef __CO2_H
#define __CO2_H

#define UART_BAUDRATE                      9600
#define UART_DATA_BITS                     3
#define UART_STOP_BITS                     1
#define UART_PARITY_BIT                    0
#define UART_TRANSFER_SIZE                 6

extern uint32_t co2;

void pin_init(void);
void uart_config(void);
void uart_rx_callback(const void *buffer, uint16_t length, bool error);
void CO2_init(void);

#endif